CC=gcc
CFLAGS=-Wall
LDFLAGS=-lpthread

all: chat server

chat: chat.c
	$(CC) $(CFLAGS) chat.c -o chat $(LDFLAGS)

server: server.c
	$(CC) $(CFLAGS) server.c -o server $(LDFLAGS)

clean:
	rm -f chat server
